package com.org.redis.memcached;

import net.spy.memcached.MemcachedClient;

public class Test {

    public static void main(String[] args) {
        MemcachedClient client = null;
        try {
            client = MemcachedUtil.getClient();
            client.add("test",60,"wang");
            String test = (String) client.get("test");
            System.out.println(test);
            /**
             client.add("i",60,0);
             client.incr("i",5);
             System.out.println(client.get("i"));
             **/
        }finally {
            MemcachedUtil.close(client);
        }


    }
}
